package com.bwda.dsrs.filecenter.service.impl;

import com.bwda.dsrs.base.centerbase.util.PageHelperUtil;
import com.bwda.dsrs.filecenter.domain.po.scanresulttable.ScanResultTablePo;
import com.bwda.dsrs.filecenter.domain.condition.scanresulttable.ScanResultTableCondition;
import com.bwda.dsrs.filecenter.mapper.dsrs.ScanResultTableMapper;
import com.bwda.dsrs.filecenter.service.ScanResultTableService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
/**
 * @author Administrator
 */
@Service
public class ScanResultTableServiceImpl extends BaseServiceImpl<ScanResultTablePo, ScanResultTableCondition, ScanResultTableMapper> implements ScanResultTableService {
    @Resource
    private ScanResultTableMapper scanResultTableMapper;
    @Override
    public List<ScanResultTablePo> queryTablePageList(ScanResultTableCondition condition) {
        PageHelperUtil.startPage(condition.getPageNum(), condition.getPageSize());
        List<ScanResultTablePo> list = scanResultTableMapper.queryTablePageList(condition);
        return list;
    }
}